package com.wendy.common.core.errcode.user;

import com.wendy.common.core.constant.HttpStatus;
import com.wendy.common.core.errcode.base.BaseError;

public class UserError extends BaseError {

    public static UserError USER_NOT_EXIST = new UserError("用户不存在", HttpStatus.ERROR);
    public static UserError NAME_OR_PASSWORD_ERROR   = new UserError("用户名或密码错误", HttpStatus.ERROR);
    public static UserError NOT_OPEN_REGISTER   = new UserError("当前系统没有开启注册功能", HttpStatus.ERROR);
    public static UserError USER_ALREADY_EXIST = new UserError("新增用户%s失败，登录账号已存在", HttpStatus.ERROR);
    public static UserError USER_MOBILE_ALREADY_EXIST = new UserError("新增用户%S失败，手机号码已存在", HttpStatus.ERROR);
    public static UserError EDIT_USER_ALREADY_EXIST = new UserError("修改用户%s失败，登录账号已存在", HttpStatus.ERROR);
    public static UserError EDIT_USER_MOBILE_ALREADY_EXIST = new UserError("修改用户%S失败，手机号码已存在", HttpStatus.ERROR);
    public static UserError EDIT_USER_EMAIL_ALREADY_EXIST = new UserError("修改用户%S失败，邮箱账号已存在", HttpStatus.ERROR);
    public static UserError USER_EMAIL_ALREADY_EXIST = new UserError("新增用户%S失败，邮箱账号已存在", HttpStatus.ERROR);
    public static UserError CAN_NOT_DEL = new UserError("当前用户不能删除", HttpStatus.ERROR);
    public static UserError GET_USER_FAIL = new UserError("获取用户失败:%s", HttpStatus.ERROR);
    public static UserError REGISTER_USER_FAIL = new UserError("注册用户失败:%s", HttpStatus.ERROR);

    public UserError() {
    }

    public UserError(String msg, Integer code) {
        super(msg, code);
    }
}
